﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="DangKy.aspx.cs" Inherits="MasterPageGroupF3.DangKyHCM" %>

<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul class="clsmenuul">
        <li><a href="index.aspx">GIÁ TỐT HÔM NAY </a></li>
        <li><a href="GiaTotGanDay.aspx">GIÁ TỐT GẦN ĐÂY</a> </li>
        <li><a href="GiaTotSapToi.aspx">GIÁ TỐT SẮP TỚI</a> </li>
         <% if (Session["Provider"] != null)
            {%>
                <li><a href="DangTinKhuyenMai.aspx">ĐĂNG TIN KHUYẾN MÃI</a> </li> 
                 <li><a href="DanhSachDonDatHang.aspx">DS ĐƠN ĐẶT HÀNG</a> </li>
           <%}
            if (Session["UserName"] != null)
            {%>
                <li><a href="LichSuMuaHang.aspx">LỊCH SỬ MUA HÀNG</a> </li> 
                 <li><a href="TinhTrangDonHang.aspx">TÌNH TRẠNG ĐƠN HÀNG</a> </li>
            <%} %>
        <li><a href="ThaoLuan.aspx">THẢO LUẬN</a> </li>
        <li><a href="TroGiup.aspx">TRỢ GIÚP</a> </li>        
    </ul>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">    
        <div class="leftboxtop">
            <img src="../skin/frontend/default/inspire-blue/images/contenttop.png" width="706" height="13"
                alt="2columns-right" />
        </div>        
        <div class="contpad clearfix">            
            <div class="div_LMainInfo" style="margin-top: 5px; height: 625px;">
                <p class="ptitleDN">
                    <strong class="strDN">Đăng ký thành viên</strong></p>                    
                <div class="div_InfoSI">
                    <div class="div_Company">
                        <div class="div_bodyCom">
                            <div class="div_BodyDK div_bodyDN" id="divSignUp">
                                <ul class="ulDangKy">
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Bạn là nhà cung cấp:</p>
                                        <div style="position: relative; float: left; top: 5px; left: 0px;">
                                            <asp:CheckBox ID="cbNhaCC" runat="server" AutoPostBack="True" 
                                                oncheckedchanged="cbNhaCC_CheckedChanged" />
                                        </div>                                     
                                    </li>

                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Email:</p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <i class="txt_tlW"></i><i class="txt_ctW"></i><i class="txt_trW"></i>
                                            <div class="txt_clW">
                                                <div class="txt_crW">
                                                    <div class="txt_inner">
                                                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>                                                                                                                                                                       
                                                    </div>
                                                </div>
                                            </div>
                                            <i class="txt_blW"></i><i class="txt_cbW"></i><i class="txt_brW"></i>                                            
                                        </div>
                                        <div class="div_txtDKErr">
                                            <asp:RequiredFieldValidator ID="rqEmail" runat="server" ControlToValidate="txtEmail"
                                                ErrorMessage="Không hợp lệ."></asp:RequiredFieldValidator>
                                        </div>
                                        <div class="div_txtDKErr">
                                            <asp:RegularExpressionValidator ID="valEmail" runat="server" ControlToValidate="txtEmail"
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="Không hợp lệ."></asp:RegularExpressionValidator>
                                        </div>
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Tên thành viên:</p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <i class="txt_tlW"></i><i class="txt_ctW"></i><i class="txt_trW"></i>
                                            <div class="txt_clW">
                                                <div class="txt_crW">
                                                    <div class="txt_inner">
                                                        <asp:TextBox ID="txtTenThanhVien" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <i class="txt_blW"></i><i class="txt_cbW"></i><i class="txt_brW"></i>
                                        </div>
                                        <div class="div_txtDKErr">
                                            <asp:RequiredFieldValidator ID="reqTenThanhVien" runat="server" ControlToValidate="txtTenThanhVien"
                                                ErrorMessage="Không hợp lệ."></asp:RequiredFieldValidator>
                                        </div>                                        
                                        <div class="div_txtDKErr">
                                            <asp:RegularExpressionValidator ID="valTenThanhVien" runat="server" ControlToValidate="txtTenThanhVien"
                                                ValidationExpression="^[\w_]{8,30}$" ErrorMessage="Không hợp lệ. Ít nhất là 8 ký tự."></asp:RegularExpressionValidator>
                                        </div>                                                                                                            
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Mật khẩu:</p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <i class="txt_tlW"></i><i class="txt_ctW"></i><i class="txt_trW"></i>
                                            <div class="txt_clW">
                                                <div class="txt_crW">
                                                    <div class="txt_inner">
                                                        <asp:TextBox ID="txtMatKhau" TextMode="Password" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <i class="txt_blW"></i><i class="txt_cbW"></i><i class="txt_brW"></i>
                                        </div>
                                        <div class="div_txtDKErr">
                                            <asp:RequiredFieldValidator ID="reqMatKhau" runat="server" ControlToValidate="txtMatKhau"
                                                ErrorMessage="Không hợp lệ."></asp:RequiredFieldValidator>
                                        </div>                                        
                                        <div class="div_txtDKErr">
                                            <asp:RegularExpressionValidator ID="valMatKhau" runat="server" ControlToValidate="txtMatKhau"
                                                ValidationExpression="^[\w_@?]{8,30}$" ErrorMessage="Không hợp lệ. Ít nhất là 8 ký tự."></asp:RegularExpressionValidator>
                                        </div>                                        
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Xác nhận mật khẩu:</p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <i class="txt_tlW"></i><i class="txt_ctW"></i><i class="txt_trW"></i>
                                            <div class="txt_clW">
                                                <div class="txt_crW">
                                                    <div class="txt_inner">
                                                        <asp:TextBox ID="txtXacNhanMatKhau" TextMode="Password" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <i class="txt_blW"></i><i class="txt_cbW"></i><i class="txt_brW"></i>
                                        </div>   
                                        <div class="div_txtDKErr">
                                            <asp:CompareValidator ID="cvXNMatKhau" runat="server" 
                                                ErrorMessage="Không trùng nhau." ControlToCompare="txtMatKhau" 
                                                ControlToValidate="txtXacNhanMatKhau"></asp:CompareValidator>
                                        </div>                                     
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            Họ tên:</p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <i class="txt_tlW"></i><i class="txt_ctW"></i><i class="txt_trW"></i>
                                            <div class="txt_clW">
                                                <div class="txt_crW">
                                                    <div class="txt_inner">
                                                        <asp:TextBox ID="txtHoTen" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <i class="txt_blW"></i><i class="txt_cbW"></i><i class="txt_brW"></i>
                                        </div>
                                        <div class="div_txtDKErr">
                                            <asp:RequiredFieldValidator ID="reqHoTen" runat="server" ControlToValidate="txtHoTen"
                                                ErrorMessage="Không hợp lệ."></asp:RequiredFieldValidator>
                                        </div>                                        
                                        <div class="div_txtDKErr">
                                            <asp:RegularExpressionValidator ID="valHoTen" runat="server" ControlToValidate="txtHoTen"
                                                ValidationExpression="^[\w _]{3,50}$" ErrorMessage="Không hợp lệ."></asp:RegularExpressionValidator>
                                        </div>                                        
                                    </li>
                                   
                                   <li>
                                        <p class="p_txtDK">
                                        </p>
                                        <div id="div1" style="width: 70px; height: 45px; position: relative; float: left"> 
                                            <label class="iGTDK" for="chk_product">
                                            </label>
                                            <div style="margin:10px 0 0 5px; width:23px; height :24;position:relative; float:left">
                                                <asp:RadioButton ID="rNam" runat="server" GroupName="GioiTinh" 
                                                    Checked="True" /> &nbsp;</div>                                                                                        
                                        </div>
                                        <i class="iNoneDK"></i>
                                        <div id="div2" style="width: 70px; height: 45px; position: relative; float: left">                                            
                                            <label class="iGTFMailDK" for="chk_product">
                                            </label>
                                            <div style="margin:10px 0 0 5px; width:23px; height :24;position:relative; float:left">
                                                <asp:RadioButton ID="rNu" runat="server" GroupName="GioiTinh" />&nbsp;</div>                                            
                                        </div>
                                        <p class="pMessDK pMessFail" style="width: auto; display: none; padding-top: 12px;"
                                            id="p1">
                                        </p>
                                        
                                    </li>                                                                       

                                    <li class="liBirthRO">
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Ngày sinh:</p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <i class="txt_tlW"></i><i class="txt_ctW"></i><i class="txt_trW"></i>
                                            <div class="txt_clW">
                                                <div class="txt_crW">
                                                    <div class="txt_inner">
                                                        <asp:TextBox ID="txtNgaySinh" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <i class="txt_blW"></i><i class="txt_cbW"></i><i class="txt_brW"></i>
                                        </div>
                                        <div class="div_txtDKErr">
                                           <p style="color:#999999">(Tháng/Ngày/Năm)</p>
                                        </div>
                                        <div class="div_txtDKErr">
                                            <asp:RequiredFieldValidator ID="reqNgaySinh" runat="server" ControlToValidate="txtNgaySinh"
                                                ErrorMessage="Không hợp lệ."></asp:RequiredFieldValidator>
                                        </div>
                                        <div class="div_txtDKErr">
                                            <asp:CompareValidator ID="cvNgaySinh" runat="server" 
                                                ErrorMessage="Không hợp lệ." Operator="DataTypeCheck"
                                                Type="Date" 
                                                ControlToValidate="txtNgaySinh"></asp:CompareValidator>
                                        </div>
                                        <%--<div class="div_txtDayDK">
                                            <asp:DropDownList ID="ddlNgay" runat="server" CssClass="ddlDWBirth">                                                                                            
                                            </asp:DropDownList>
                                        </div>
                                        <div class="div_txtDayDK monthDK">
                                            <asp:DropDownList ID="ddlThang" runat="server" CssClass="ddlDWBirth">
                                            </asp:DropDownList>
                                        </div>
                                        <div class="div_txtYearDK">
                                            <asp:DropDownList ID="ddlNam" runat="server" CssClass="ddlDWBirth">
                                            </asp:DropDownList>
                                        </div>   --%>                                     
                                    </li>

                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Mã xác nhận:</p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <cc1:CaptchaControl ID="CaptchaControl1" runat="server" />
                                        </div>                                                                                                               
                                    </li>    
                                    
                                    <li>
                                        <p class="p_txtDK">
                                        </p>
                                        <div class="div_txtDK txtSigninPopup">
                                            <i class="txt_tlW"></i><i class="txt_ctW"></i><i class="txt_trW"></i>
                                            <div class="txt_clW">
                                                <div class="txt_crW">
                                                    <div class="txt_inner">
                                                        <asp:TextBox ID="txtCaptcha" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <i class="txt_blW"></i><i class="txt_cbW"></i><i class="txt_brW"></i>
                                        </div>
                                    </li>                               

                                    <li>
                                        <p class="p_txtDK">
                                        </p>
                                        <div style="width: 125px; height: 45px; position: relative; float: left; top: 0px; left: 0px;">
                                            <asp:Button ID="btnDangKy" runat="server" CssClass="btnGui" Text="Đăng Ký" 
                                                onclick="btnDangKy_Click" Height="45px" Width="126px" BorderStyle="None" />
                                        </div>
                                    </li> 

                                    <li>
                                        
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>                
            </div>
        </div>                
        <img src="../skin/frontend/default/inspire-blue/images/contentbottom.gif" width="706"
            height="10" alt="contentbottom" />            
    
</asp:Content>
